import { defineAsyncComponent } from "vue";

export default {
  install(app: Record<string, any>) {
    // 批量注册全局组件
    app.component(
      "InputSelect",
      defineAsyncComponent(() => import("@/components/Form/InputSelect/index.vue"))
    );
    app.component(
      "FormInfo",
      defineAsyncComponent(() => import("@/components/Form/Info/index.vue"))
    );
    app.component(
      "FormTitle",
      defineAsyncComponent(() => import("@/components/Form/Title/index.vue"))
    );
  }
};
